<style type="text/css">
	@media (max-height: 400px) { 
	  .footer {     display: none;   
	} }
</style>


<!-- 使用缓存填充表单 -->
<script type="text/javascript">
$(window).load(function() {
	var openId = sessionStorage.getItem("openId");	
	var state = sessionStorage.getItem("state"); 
	var creator = sessionStorage.getItem("creator");
	$('#_openId').val(openId);
	$('#_state').val(state);
	$('#_creator').val(creator);

	
	
// 	alert(openId);
}); 

//解决输入被遮挡问题
// 解决初始化文档高度，让文档高度等于窗体高度，并fixed需要定位的区域在最下方
(function bottonm(){  
            if($(document).height()<$(window).height()){  
                $('.bottom_fix').css({'position':'fixed','bottom':'0px'});  
                $(document).height($(window).height()+'px');  
            }  
        })(); 




function jump_item(item){
	$('#item').val(item);
    document.menu_data_form.submit();
}

</script>



<section id="myfooter" class="footer">
<div id="_buttom_menu" class="navbar-fixed-bottom">

<!-- 提交数据 openId item 来决定导航目的地以及是否拥有权限 state未user的state  -->
<div id="menu_data_div" class="_hide">
<form id="menu_data_form" name="menu_data_form" action="<?=base_url().'index.php/menu_control/item'?>" method="post">
<input type="text"  name="openId" placeholder="openId" id="_openId" value="<?=isset($openId)?$openId:'';?>">
<input type="text"  name="creator" placeholder="creator" id="_creator" value="<?=isset($creator)?$creator:0;?>">
<input type="text"  name="state"placeholder="state" id="_state" value="<?=isset($state)?$state:'';?>">
<input type="text"  name="item" placeholder="item" id="item" value="<?=isset($item)?$item:'';?>">
</form>
</div>

<div class="col-xs-3"><button type="button" class="btn btn-default" onClick="jump_item(1)">回到首页</button></div>
<div class="col-xs-3"><button type="button" class="btn btn-default" onClick="jump_item(2)">推荐客户</button></div>
<div class="col-xs-3">
<div class="btn-group dropup">
<button type="button" class="btn btn-default dropdown-toggle" 
data-toggle="dropdown">
个人中心
</button>
<ul class="dropdown-menu" role="menu">
<li><button type="button" class="btn btn-default" onClick="jump_item(31)">我的信息</button></li>
<li><button type="button" class="btn btn-default" onClick="jump_item(32)">我的客户</button></li>
</ul>
</div>    
</div>
<div class="col-xs-3"><button type="button" class="btn btn-default" onClick="jump_item(4)">。。。</button></div>

</div>

</section>



</body>
</html>